if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CDS_InfoEd_Map]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[CDS_InfoEd_Map]
GO

CREATE TABLE [dbo].[CDS_InfoEd_Map] (
	[Map_UsernameSorted] [varchar] (36) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_LoginID] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_FirstName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_LastName] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_EmailAddress] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_IsActive] [int] NULL ,
	[Map_Org] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_fname] [varchar] (70) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_lname] [varchar] (70) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_Fstatus] [int] NULL ,
	[Map_PersonID] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_Dept] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_email] [varchar] (80) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_RecomInst] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_RecomDept] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
	[Map_RecomOrg] AS ([Map_RecomInst] + '-' + [Map_RecomDept]) 
) ON [PRIMARY]
GO

